﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Idlesoft.Utils
{
	public static class ExceptionExtensions
	{
		public static string Expand(this Exception ex)
		{
			string expand = "";
			do { expand += ex.Message; } while ( (ex = ex.InnerException) != null);
			return expand + "\n";
		}
	}
}
